﻿@model CodeCamp.Models.Email.EmailAddSearch

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <div>
    @Html.HiddenFor(model => model.EmailCampaignId)
    <table>
        <tr>
            <th>@Html.LabelFor(model => model.FirstName, "First Name:")</th>
            <td>
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(model => model.LastName, "Last Name:")</th>
            <td>
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
            </td>
            <td>
                @Html.LabelFor(model => model.LastNameStartsWith)
                @Html.EditorFor(model => model.LastNameStartsWith)
                @Html.ValidationMessageFor(model => model.LastNameStartsWith)
            </td>
        </tr>
        <tr>
            <td colspan="3">
            @Html.LabelFor(model => model.PresentersOnly, "Presenters Only:")
            @Html.EditorFor(model => model.PresentersOnly)
            @Html.ValidationMessageFor(model => model.PresentersOnly)
                &nbsp;&nbsp;
            @Html.LabelFor(model => model.ExcludePresenters, "Exclude Presenters:")
            @Html.EditorFor(model => model.ExcludePresenters)
            @Html.ValidationMessageFor(model => model.ExcludePresenters)
                &nbsp;&nbsp;
            @Html.LabelFor(model => model.InsidersOnly, "Insiders Only:")
            @Html.EditorFor(model => model.InsidersOnly)
            @Html.ValidationMessageFor(model => model.InsidersOnly)
                <br />
            @Html.LabelFor(model => model.ExcludeSiteUsersInCampaign, "Exclude SiteUsers in Campaign:")
            @Html.EditorFor(model => model.ExcludeSiteUsersInCampaign)
            @Html.ValidationMessageFor(model => model.ExcludeSiteUsersInCampaign)
                <br />
            @Html.LabelFor(model => model.ExcludeCodeCampIdentities, "Exclude SiteUsers with CodeCamp Identity:")
            @Html.EditorFor(model => model.ExcludeCodeCampIdentities)
            @Html.ValidationMessageFor(model => model.ExcludeCodeCampIdentities)
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:right;">
                <input type="submit" value="Search" />
            </td>
        </tr>
    </table>
    </div>
    
}
